<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%
request.setAttribute("locale",request.getLocale());
request.setAttribute("sessionId",session.getId());
%>
<script type="text/javascript">
function uploadifyComplete(event,Id,fileObj,response,data){
	var rspMap = JSON.parse(response);
	if(rspMap.statusCode=="200"){
		alertMsg.correct(rspMap.message);
	}else{
		alertMsg.error(rspMap.message);
	}
}
</script>

<div class="pageContent">
	<div class="pageFormContent" layoutH="56">
		<div class="riUpload">
			<div class="riuLeft">
				<input id="testFileInput" type="file" name="image" 
				   uploader="<c:url value="/resources/uploadify/scripts/uploadify.swf"/>" 
				   cancelImg="<c:url value="/resources/uploadify/cancel.png"/>" 
				   script="<c:url value="/rights/importRights.shtml;jsessionid=${sessionId}"/>" 
				   scriptData="" 
				   folder="/folder" 
				   fileQueue="fileQueue" 
				   [onComplete="uploadifyComplete"] 
				   fileExt="*.xls;" 
				   fileDesc="*.xls;" />
			</div>
			<div class="riuRight">
		    	<div id="fileQueue" class="fileQueue"></div>
			</div>
			<div style="clear:both"></div>
			<div class="riuDesc">
    			上传按照固定格式构成的excel文件，将林权证信息导入到系统中。
   			</div>
   			<div style="clear:both"></div>
   		</div>
	</div>
</div>